package pattern.common

import pattern.common.common.Common

/**
 * 调用者调用命令
 */
class SimpleRemoteCommon {

  private var slot:Common = _

  def setCommon(common: Common): Unit ={
    slot = common
  }

  def buttonWasPressed(): Unit ={
    slot.execute()
  }
}
